import java.util.List;

public class FruitApp {
    public static void main(String[] args) {
        Function f = new Function();
        List<Fruit> fr = null;
        List<Fruit.Apple> app = null;
        List<Fruit.Apple.Orange> or = null;
        List<Fruit.Apple.RedApple> rapp = null;
        List<Fruit.Apple.Melon> mel = null;
        f.copyAll(or,fr);
        f.copyAll(rapp, fr);
        f.copyAll(rapp, app);
        f.copyAll(rapp, rapp);
        f.copyAll(fr, or);
    }
}
